<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('修改供应商批次编号管理，供应商生成货箱时的批次和编号，下一批次和编号在记录上累加后更新')" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-number-edit" th:object="${supplierBoxBatchNumber}">
            <input name="id" th:field="*{id}" type="hidden">
            <div class="form-group">    
                <label class="col-sm-3 control-label">货箱前缀：</label>
                <div class="col-sm-8">
                    <input name="boxPrefix" th:field="*{boxPrefix}" class="form-control" type="text" disabled>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">当前生成的最大批次：</label>
                <div class="col-sm-8">
                    <input name="curBatch" th:field="*{curBatch}" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">当前货箱累加的开始编号：</label>
                <div class="col-sm-8">
                    <input name="curNumber" th:field="*{curNumber}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">备注：</label>
                <div class="col-sm-8">
                    <input name="remark" th:field="*{remark}" class="form-control" type="text">
                </div>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <script th:inline="javascript">
        var prefix = ctx + "system/number";
        $("#form-number-edit").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/edit", $('#form-number-edit').serialize());
            }
        }
    </script>
</body>
</html>